package com.example.leetcode.graph;

import com.example.leetcode.graph.common.GraphUtils;

class Solution207 {
    public boolean canFinish(int numCourses, int[][] prerequisites) {
        return GraphUtils.canFinish(numCourses, prerequisites);
    }
}

public class leetcode207 {
    public static void main(String[] args) {
        Solution207 solution207 = new Solution207();

        int numCourses = 2;
        int[][] prerequisites = {{1, 0}};
        System.out.println(solution207.canFinish(numCourses, prerequisites));

        int numCourses1 = 2;
        int[][] prerequisites1 = {{1, 0}, {0, 1}};
        System.out.println(solution207.canFinish(numCourses1, prerequisites1));
    }
}
